package com.one.common.common;

import com.one.common.common.system.model.response.TrackResponse;
import com.one.common.config.CMemoryData;
import com.one.common.model.http.NetConstant;
import com.one.common.model.http.base.BaseModel;
import com.one.common.model.http.callback.ObserverOnNextListener;

/**
 * Author: zhulunjun
 * Email: zhulunjun@qq.com
 * CreateDate: 2019/8/1 10:09
 * Description：
 **/
public class LocationModel extends BaseModel<LocationApi> {
    public LocationModel() {
        super(LocationApi.class, NetConstant.APP_LOCATION_HOST_PRODUCT);
    }

    /**
     * 查询是否存在运输中的订单
     */
    public void getTrackInfo(ObserverOnNextListener<TrackResponse> listener) {
        handleOnNextObserverNoActivityT(mApiService.getTrack("1", CMemoryData.getUserInfo().getUser_id()), listener, false);
    }
}
